/**
 * 打印5行*与#
 */

public class TestLoop02 {
    public static void main(String[] args) {
        for(int a=1;a<=5;a++) {
            for (int i = 1; i <= 5; i++) {
                System.out.print("*" + "\t");
            }
            System.out.println();
        }
        System.out.println();
        int count=0;
        for(int n=1;n<=5;n++){
            for(int m=1;m<=5;m++){
                if((n+m)%2==0){
                    System.out.print("*\t");
                }else {
                    System.out.print("#\t");
                }
                count++;
                if(count==5){
                    System.out.println();
                    count=0;
                }
                /*if(m==5){
                    System.out.println();
                }*/
            }
        }

    }
}
